home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / dos999.zip / 31406.TXT < prev    next >
Text File  |  1993-09-07  |  9KB  |  226 lines

  1.        _________________________________________________________________
  2.        STACKER NOTE                                         STACKER NOTE
  3.                             COMPRESSING A RAM DISK
  4.                   (Applies to Stacker 3.1 for Windows & DOS)
  5.        STAC FAX 31406  (09/07/93)
  6.        _________________________________________________________________
  7.                                        
  8.                                        
  9.        BACKGROUND
  10.        
  11.        This document offers several strategies for compressing a ram
  12.        disk using Stacker 3.1.  The procedures involve modifying your
  13.        configuration files, CONFIG.SYS, STACKER.INI, and AUTOEXEC.BAT.
  14.        Once these modifications are in place, Stacker automatically
  15.        compresses the ram disk every time you start your computer.  See
  16.        document 31407, "Troubleshooting Stacker Ram Disks," for more 
  17.        information.
  18.        
  19.        SOLUTION
  20.        
  21.            Create the ram disk
  22.            Position the ram disk
  23.            Compress the ram disk
  24.            Mount the compressed ram disk
  25.             
  26.        Create the ram disk
  27.        
  28.        Stacker 3.1 compression works exclusively on DOS disks with 512-
  29.        byte sectors.  Random Access Memory (RAM) cannot be compressed,
  30.        but a device-driven disk created from RAM is an ideal candidate
  31.        for compression.  Stacker cannot create a ram disk, but it can
  32.        compress one.
  33.        
  34.        RAMDRIVE.SYS is an example of a  ram disk utility that comes with
  35.        MS-DOS.  This is an example of a minimal CONFIG.SYS file that
  36.        creates a one-megabyte ram disk in extended memory using
  37.        RAMDRIVE.SYS:
  38.        
  39.                device=c:\dos\himem.sys
  40.                device=c:\dos\emm386.exe
  41.                device=c:\dos\ramdrive.sys 1024 /e
  42.                
  43.        Your CONFIG.SYS file will be substantially different from this
  44.        minimal example.  Consult your ram disk utility's user guide for
  45.        instructions on how to create a ram disk.
  46.        
  47.        
  48.        Position the ram disk
  49.        
  50.        When assigning drive letters, DOS processes physical hard disks
  51.        and partitions first starting with letter "C."  Next, DOS assigns
  52.        letters to device-driven drives like ram drives and Stacker
  53.        drives in  the order in which they are loaded in the CONFIG.SYS
  54.        and AUTOEXEC.BAT.
  55.        
  56.        For example, if you add a ram disk device driver to your
  57.        CONFIG.SYS file  BEFORE the STACHIGH.SYS driver, then DOS
  58.        processes the ram disk first and assigns it the next available
  59.        drive letter.  Conversely, if you add the ram disk device driver
  60.        AFTER the STACHIGH.SYS driver, or if the ram disk is created in
  61.        the AUTOEXEC.BAT file, then DOS processes the Stacker drive
  62.        letters first.
  63.        
  64.         1. Follow your ram disk utility's instructions for creating a
  65.            ram disk.  If the instructions include adding commands to
  66.            the AUTOEXEC.BAT file, ensure that they appear before the
  67.            Stacker command:
  68.                
  69.                C:\STACKER\CHECK /WP
  70.             
  71.         2. Reboot.
  72.         
  73.         3. Note the startup message produced by the ram disk utility.
  74.            It normally indicates the ram disk drive letter.
  75.         
  76.         4. Verify the integrity of the ram disk by running CHKDSK X:,
  77.            where X is the ram disk drive letter.
  78.             
  79.        
  80.        Compress the ram disk
  81.        
  82.        After you have successfully created and positioned your ram disk,
  83.        you are ready to make the necessary configuration changes to
  84.        compress it.  Stacker provides two utilities for compressing ram
  85.        disks:
  86.        
  87.        SCREATE.SYS 
  88.           This utility compresses ram disks from the CONFIG.SYS file.  
  89.           Some ram disk utilities create ram disks in the AUTOEXEC.BAT
  90.           file.  If your utility does this, then you must use CREATE
  91.           instead.
  92.        
  93.        CREATE 
  94.           This utility compresses ram disks from the AUTOEXEC.BAT file 
  95.           and must be used if your ram disk utility completes creation 
  96.           of ram disks in the AUTOEXEC.BAT file.
  97.        
  98.        
  99.        Using SCREATE.SYS
  100.        
  101.        This is the syntax for compressing a ram disk in the CONFIG.SYS
  102.        file:
  103.        
  104.             device=c:\stacker\screate.sys X:
  105.        
  106.        where X is the ram disk drive letter.
  107.        
  108.         1. Use a text editor to insert this command into the CONFIG.SYS
  109.            file.  It should be the next command following your ram disk
  110.            device driver.
  111.        
  112.         2. Save the file, exit the text editor, and reboot your
  113.            computer.
  114.             
  115.         3. Ensure that SCREATE produces the following message when you
  116.            reboot:
  117.        
  118.              SCREATE - 3.10, (C) 1991-93 Stac Electronics, Carlsbad CA
  119.              X:\STACVOL.DSK created successfully.
  120.        
  121.        
  122.        Using CREATE
  123.        
  124.        This is the syntax for compressing a ram disk in the AUTOEXEC.BAT
  125.        file:
  126.                  c:\stacker\create X: /b
  127.        
  128.        where X is the ram disk drive letter.
  129.        
  130.         1.  Use a text editor to insert this command into the
  131.             AUTOEXEC.BAT file.  It should appear immediately before the
  132.             Stacker check command, and after any ram disk commands:
  133.             
  134.                [ possible ram disk commands...]
  135.                REM  THE CHECK LINE BELOW PROVIDES ADDITIONAL SAFETY...
  136.                REM  PLEASE DO NOT REMOVE IT.
  137.                c:\stacker\create X: /b
  138.                C:\STACKER\CHECK /WP
  139.             
  140.         2.  Save the file, exit the text editor, and reboot your
  141.             computer.
  142.        
  143.         3.  Ensure that CREATE produces the following message when you
  144.             reboot:
  145.        
  146.                Stacker drive created successfully.
  147.             
  148.        
  149.        Mount the compressed ram disk
  150.        
  151.        After you have successfully compressed your ram disk, you are
  152.        ready to make the necessary configuration changes to
  153.        automatically mount it.
  154.        
  155.        If you compressed the ram drive using SCREATE.SYS BEFORE the
  156.        STACHIGH.SYS driver, then complete procedure 1, Mounting in
  157.        STACKER.INI.  Otherwise complete procedure 2, Mounting in
  158.        AUTOEXEC.BAT.
  159.        
  160.                           1.  MOUNTING IN STACKER.INI
  161.        
  162.         1.  Follow the instructions on page 15 of the Stacker 3.1
  163.             supplement to edit the STACKER.INI file.
  164.        
  165.         2.  Add the following command:
  166.        
  167.                X:\stacvol.dsk,rp
  168.        
  169.             where X is the ram disk drive letter.
  170.             
  171.         3.  Press Ctrl-Z to save the file.
  172.  
  173.         4.  Reboot.
  174.        
  175.        
  176.                          2.  MOUNTING IN AUTOEXEC.BAT
  177.                                        
  178.         1.  Determine if a replaceable drive is available.  From the DOS
  179.             command prompt, type:
  180.        
  181.                stacker <ENTER>
  182.        
  183.             If the last line of the Stacker drive map indicates:
  184.              
  185.                No available replaceable drive(s).
  186.        
  187.             then complete step 1-A.  Otherwise skip to step 2.
  188.             
  189.        1-A. Follow the instructions on page 15 of the Stacker 3.1
  190.             supplement to edit the STACKER.INI file.  If it already
  191.             contains the switch:
  192.                
  193.                /RP=n
  194.            
  195.             then increase n by 1.  Otherwise, add this switch to the
  196.             beginning of the file:
  197.        
  198.                /RP=2
  199.        
  200.             then press CTRL-Z to save the modification.
  201.             
  202.         2.  This is the syntax for mounting a ram disk in the
  203.             AUTOEXEC.BAT file:
  204.        
  205.                  c:\stacker\stacker X:
  206.        
  207.             where X is the ram disk drive letter.  Use a text editor
  208.             to insert this command into the AUTOEXEC.BAT file.  It
  209.             should appear immediately before the Stacker check command:
  210.        
  211.                  [ possible ram disk commands...]
  212.                  REM  THE CHECK LINE BELOW PROVIDES ADDITIONAL SAFETY
  213.                  REM  PLEASE DO NOT REMOVE IT.
  214.                  [ possible c:\stacker\create X: /b command...]
  215.                  c:\stacker\stacker X:
  216.                  C:\STACKER\CHECK /WP
  217.                  .
  218.                  .
  219.                  .
  220.                                        
  221.         3.   Save the modified AUTOEXEC.BAT file.
  222.         
  223.         4.   Reboot.       
  224.        _________________________________________________________________
  225.        Copyright 1993, Stac Electronics                      
  226.